package cn.zhaoguang.usedcar.main.mapper;

import cn.zhaoguang.usedcar.main.common.BaseTkMapper;
import cn.zhaoguang.usedcar.main.entity.Carousel;
import cn.zhaoguang.usedcar.main.entity.dto.CarouselDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper extends BaseTkMapper<Carousel> {

    /**
     * @Description 查询某辆车是否存在(添加接口使用)
     * @Author zhaoguang
     */
    Integer findExistByUsedcarId(@Param("usedcarId") Integer usedcarId);

    /**
     * @Description 查询全部轮播图
     * @Author zhaoguang
     */
    List<CarouselDTO> findAll();
}